#include<iostream>
using namespace std;
char s[1000001];

int main(){
	int cnt=1;
	while(cin>>s[cnt]){
		cnt++;
	}
	bool wei = true;
	int end = 1;
	if(s[1]=='-'){
		cout<<'-';
		end++;
	}
	for(int i=cnt-1;i>=end;i--){
		if(wei && s[i] == '0')continue;
		if(wei && s[i]!='0'){
			cout<<s[i];
			wei = false;
			continue;
		}
		cout<<s[i];
	}
	return 0;
}
